<script setup>
import { reactive, onMounted } from 'vue'
import { getBannerList } from '@/api/index/index'

const getBannerListData = async () => {
  const res = await getBannerList()
  if (res.code == 200) {
    if (res.rows.length) {
      localStorage.setItem('banner', res.rows[0].img)
    }
  }

}

onMounted(() => {
  localStorage.setItem('href', window.location.href)
  getBannerListData()
})
</script>

<template>
  <RouterView />
</template>

<style scoped></style>
